#include "incs.h"

#include "LevelCreator.h"



cNivel::cNivel()
{
}

cNivel::~cNivel()
{
}


void cNivel::AddShip(cShip & n)
{
	vShips.push_back(&n);
}

void cNivel::VaciarShips(void)
{
	vShips.empty();
}

unsigned int cNivel::GetNumShips(void)
{
	return vShips.size();
}

void cNivel::RemoveTangible()
{
}

void cNivel::SetDificultad(unsigned int dif)
{
}

void cNivel::UpdateWithDificultad()
{
}

void cNivel::AddTangible(Tangible & obj)
{
	lTangible.push_back(& obj);
}

void cNivel::DestroyTangibles()
{


	lTangible.clear();

}

void cNivel::AddMision(Mision & obj)
{
	for (unsigned int i = 0; i < vMision.size(); i++)
	if (vMision[i] == NULL)
		vMision[i] = &obj;
	else	
	vMision.push_back(& obj);
}

void cNivel::RemoveCompletedMisions()
{ 
	for (unsigned int i = 0; i < vMision.size(); i++)
	{
		if (vMision[i]->EsCompletada()) 
		{
			vCompMision.push_back(vMision[i]);
			vMision[i] = NULL;
		}
	}
}

		

